package com.medata.service;

import com.medata.dataObject.Advice;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface AdviceService {
    Page<Advice> findByUserName(String name, Pageable pageable);
    List<Advice> findAll();
    Page<Advice> findAll(Pageable pageable);
    void deleteAll();
    void delete(Integer id);
}
